<include file="Public/header" title="{$info.nickname}" />
    <div class="collapse navbar-collapse navbar-responsive-collapse">
        <ul class="nav navbar-nav navbar-right">
           <li class=""><a href="{:U('Index/index')}">首页</a></li>
            <li><a href="{:U('Index/index')}">发布应用</a></li>
            <li class="active"><a href="{:U('Index/listinfo')}">应用管理</a></li>
        </ul>
    </div> <!--/navbar-collapse--></div>
</div>
</header>
<!--=== Breadcrumbs ===-->
<div class="row-fluid breadcrumbs margin-bottom-20">
	<div class="container">
        <h1 class="pull-left">{$info.nickname}</h1>
        <ul class="pull-right breadcrumb">
            <!-- <li>简单设置下面的信息，您的应用发布即可完成</li> -->
        </ul>
    </div><!--/container-->
</div><!--/breadcrumbs-->
<!--=== End Breadcrumbs ===-->

<!-- Modal -->
<div class="modal fade" id="selApp" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">选择 App</h4>
      </div>
      <div class="modal-body">
			<div class="tabbb_box">
				<form action="{:U('Index/myhebing_act')}" method="post" id="myappform">
				<input type="hidden" name="appid" value="{$info.id}">
				<table style="width:100%;"  class="table table-striped table-hover text-center myapps my_history pgy-table">
                    <thead>
                        <tr>
                            <th class="text-center" width="10%">&nbsp; </th>
                            <th class="text-center" width="30%">图标</th>
                            <th class="text-center" width="30%">名称</th>
                            <th class="text-center" width="30%">平台</th>
                        </tr>
                    </thead>

                    <tbody>
                    <foreach name="list" item="v" key="k">
                        <tr>
                            <td class="clickable"><input type="checkbox" name="hobby[]" value="{$v.id}" {$v.checkstr} /></td>
                            <td class="clickable">
                            <if condition="$v.zxlogo neq '' ">
                                 <img src="__IMG__{$v.zxlogo}" class="img-rounded" width="28" height="28" />
                            <else /> 
                                 <img src="../Public/icon/dafuapk.png" class="img-rounded" width="28" height="28" />
                            </if>
                               
                            </td>
                            <td class="clickable">&nbsp;&nbsp;{$v.nickname}</td>
                            <td class="clickable text-center">
                                <if condition="$v.ext eq 'ipa' ">
                                    <span class="label label-info">IOS</span>
                                <else /> 
                                    <span class="label label-success">Android</span>
                                </if>
                                
                            </td>

                        </tr>
                    </foreach>   
                    </tbody>
                </table>
				</form>
			</div>
		</div>

              <div class="modal-footer">
                <button type="button" class="page btn-u" data-dismiss="modal" onclick="hebingsave()">合并应用</button>
              </div>

    </div>
  </div>
</div>
<!--=== Content Part ===-->
<div class="container content">
    <div class="row">

		<div class="col-md-12 ">
			<div class="row">
				<div class="col-md-6 col-sm-6 col-xm-12">
					<a class="btn-u" href="{:U('Index/appinfo',array('id'=>$info['id']))}"><i class="fa fa-cloud-upload"></i> 返回应用</a> &nbsp;&nbsp; </div>
				<div class="col-md-4 col-md-offset-2 col-sm-6 col-xm-12">
					</div>
				</div>
				<div class="margin-bottom-20"></div>
			</div> 
		</div>

        <div class="col-md-12">

				<div class="tab-v1 margin-bottom-60">
					<div class="tab-content sky-form">
						
						<div class="row" style="padding:50px;">
							<div class="col-md-5 text-center">
								<div class="funny-boxes-img">
									<a href="http://{$_SERVER['SERVER_NAME']}/a/{$info.shorturl}" target="_blank">
										<if condition="$info.zxlogo neq '' ">
											 <img src="__IMG__{$info.zxlogo}" class="img-rounded" width="125" height="125" style="margin-top:0px;margin-bottom:14px;"/>
										<else /> 
											 <img src="../Public/icon/dafuapk.png" class="img-rounded" width="125" height="125" style="margin-top:0px;margin-bottom:14px;"/>
										</if>

										 </a>
										<p class="text-center app-name">
											<a href="http://{$_SERVER['SERVER_NAME']}/a/{$info.shorturl}" target="_blank">
											{$info.nickname}
											</a>
										</p>
										<p class="text-center app-name">
											<if condition="$info.ext eq 'ipa' ">
												<span class="ios">iOS</span>
											<else />
												<span class="ios">安卓</span>
											</if>
										</p>
								</div>

							</div>
							<div class="col-md-2 text-center">
							<span style="line-height:118px;font-size:30px;"><img src="http://{$_SERVER['SERVER_NAME']}/images/link.png"></span>
							</div>
							<div class="col-md-5 text-center">
																<a href="javascript:void(0)" onclick="openSelApp()" onmouseover="$('#add-merge').attr('src','/images/app_add_hover.png')" onmouseout="$('#add-merge').attr('src','/images/app_add.png')">
										<div class="text-center" style="margin:auto;">
											<img src="/images/app_add.png" id="add-merge">
										</div>
									</a>
										<p class="text-center app-name">选择需要合并的应用</p>
															</div>
						</div>
											<div class="row">
							<div class="hr-line-dashed"></div>
						</div>
						<div class="row" style="padding:20px 50px 50px 50px;">
							<div class="col-md-10 col-md-offset-1">
							<p>温馨提示：</p>
							<p>合并后的两个应用，进入任一个应用的单页，扫描二维码，会根据你的手机系统自动帮你下载相应的版本。</p>
							</div>
						</div>
					</div>
				</div>


        </div>
    </div>
</div><!--/container-->		


<script language="javascript">
    function openSelApp() {
        $('#selApp').modal('show');

    }
	function hebingsave(){
		$('#myappform').submit();
	}
</script>

<include file="Public/footer" />